//
//  TranditionalDetailViewController.m
//  PersonalHospital
//
//  Created by qianfeng on 15/12/13.
//  Copyright (c) 2015年 QianFeng. All rights reserved.
//

#import "TranditionalDetailViewController.h"
#import "TranditionalShowCell.h"
@interface TranditionalDetailViewController ()

@end

@implementation TranditionalDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    TranditionalShowCell * cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
    if (cell==nil) {
        cell=[[TranditionalShowCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
    }
    cell.buttonClick=^{
       // [self playVidio];
    };
    
    cell.model=self.model;
    NSLog(@"%@",self.model);
    
    return cell;
}


-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return KScreen_Size.height;
}

//-(void)playVidio{
//    MPMoviePlayerViewController * player=[[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL URLWithString:[self.model cureVideo]]];
//    [self presentMoviePlayerViewControllerAnimated:player];
//}

@end
